
/**
 * Copyright (C) FPT - Aptech
 * Constant.java - 2012 - khangpm
 */
package util;

import java.util.Calendar;
import java.util.Date;



/**
 *
 * @author khangpm
 */
public class Constant {
    public static String convertDateToString(Date date) {
        Calendar c = Calendar.getInstance();
        c.setTime(date);
        StringBuilder builder = new StringBuilder();
        builder.append(String.valueOf(c.get(Calendar.MONTH)));
        builder.append("-");
        builder.append(c.get(Calendar.DAY_OF_MONTH));
        builder.append("-");
        builder.append(c.get(Calendar.YEAR));
        return builder.toString();
    }
    
}
